/*
 * Copyright (C) 2009 Show SMS open source project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.bydavy.util.showsms;

/**
 * Class to make debug log easier
 *
 * @version        1.0, 09/06/21
 * @author         Davy L.
 */
public class Log {
    //~--- static fields ------------------------------------------------------

    /** boolean to enable or disable debug mode */
    final static boolean DEBUG = false;

    /** Application name to show for debuging messages */
    static public String LOGTAG = "Show SMS";

    //~--- methods ------------------------------------------------------------

    /**
     * show message in verbose log
     *
     * @param message message to show in log
     */
    public static void v(String message) {
        if (DEBUG) {
            android.util.Log.v(LOGTAG, message);
        }
    }

    /**
     * show message in error log
     *
     * @param message message to show in log
     */
    public static void e(String message) {
        if (DEBUG) {
            android.util.Log.e(LOGTAG, message);
        }
    }

    /**
     * show message in debug log
     *
     * @param message message to show in log
     */
    public static void d(String message) {
        if (DEBUG) {
            android.util.Log.d(LOGTAG, message);
        }
    }

    /**
     * show message in information log
     *
     * @param message message to show in log
     */
    public static void i(String message) {
        if (DEBUG) {
            android.util.Log.i(LOGTAG, message);
        }
    }
}
